package org.vehicle.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.vehicle.dao.PositionInfoMapper;
import org.vehicle.entity.PositionInfo;
import org.vehicle.service.PositionInfoService;
import org.vehicle.service.base.BaseServiceImpl;

@Service
public class PositionInfoServiceImpl extends BaseServiceImpl<PositionInfo, Long> implements PositionInfoService {
	@Autowired
	private PositionInfoMapper  positionInfoMapper ;

	@Override
	public PositionInfo getLastByTripId(Long tripId) {
		// TODO Auto-generated method stub
		return positionInfoMapper.getLastByTripId(tripId);
	}

}
